<template>
  <div class="list">
    <div class="item" f-id="1">
      <img src="../image/1.png" alt="" class="img">
      <div>
        <h1 class="title" >满天星鲜花束 1束</h1>
        <div class="price">
          <span class="hb miniFont">￥</span><span class="priceNumber">415</span><span class="miniFont">.50</span>
        </div>
        <div class="xxqk">
          <span>规格：16枝</span> |
          <span>颜色：红色</span>
        </div>
      </div>
      <aside class="count">x2</aside>
    </div>
  </div>
</template>

<script>
    export default {
        name: "FlowerListItem",
        data(){
          return{
            flowers : [
              {
                id : '1',
                title : '满天星鲜花束 1束',
                priceInt : 45,
                priceFloat : '.50',
                kc : 1525,
                xl : 1452,
                imgSrc : 'https://s2.ax1x.com/2019/05/20/EvJU78.png'
              },
              {
                id : '2',
                title : '满天星鲜花束 1束',
                priceInt : 45,
                priceFloat : '.50',
                kc : 1525,
                xl : 1452,
                imgSrc : 'https://s2.ax1x.com/2019/05/20/EvJU78.png'
              },
              {
                id : '3',
                title : '满天星鲜花束 1束',
                priceInt : 45,
                priceFloat : '.50',
                kc : 1525,
                xl : 1452,
                imgSrc : 'https://s2.ax1x.com/2019/05/20/EvJU78.png'
              },

            ]
          }
        },
        methods : {
        }
    }
</script>

<style scoped lang="less">
  @priceColor : #ff3300;
  .list {
    position: relative;
    overflow: hidden;
    height: 108px;
    background: white;
    margin: 0;
    img.img{
      width: 70px;
      height: 70px;
      margin-right: 15px;
    }
    .item {
      width: 100%;
      height: 108px;
      background: none;
      position: absolute;
      left: 0;
      transition: .4s;
      display: flex;
      text-align: start;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      .icon{
        width: 24px;
        height: 24px;
        margin-right: 5px;
        font-size: 24px;
        border: 1px solid #999999;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
        position: absolute;
        top: calc(50% - 12px);
      }
      .title {
        font-size: 18px;
        margin-bottom: 0;
        font-weight: bold;
      }
      //价格
      .price{
        color: @priceColor;
        line-height: 32px;
        .priceNumber{
          font-size: 18px;
        }
        .miniFont{
          font-size: 12px;
        }
      }
      //详细情况
      .xxqk{
        display: flex;
        justify-content: space-between;
        color: #999999;
        font-size: 12px;
        img{
          margin: 0;
          width: 12px;
          height: 12px;
        }
      }
      //数量
      .count{
        position: absolute;
        right: 10px;
        font-size: 18px;
        top: calc(50% - 9px);
        color: #999999;
      }
    }
    .delBtn{
      width: 100px;
      background: #ff3300;
      min-height: 108px;
      line-height: 108px;
      position: absolute;
      top: 0;
      right: -100px;
      transition: .4s;
      color: white;
    }
  }
</style>
